function searchXMLstring(src,searchfor)
 {
 var start="<"+searchfor+">";
 var end="</"+searchfor+">";
 var a=src.indexOf(start);
 var b=src.indexOf(end);
 if (a<0 || b<0) return null;
 a+=start.length;
 return src.substring(a,b); 
 }

function xmlToArray(src)
 {
 var i=0;
 var result = new Array();
 while (searchXMLstring(src,i) != null)
  {
//  result.push(searchXMLstring(src,i));
  result[result.length]=searchXMLstring(src,i);
  i++;
  }
 return result;
 }